<?php
if($actPost=='test')
{
    $email              = gpc_getStringPost('email');
    list($subject,$msg) = LoadDataNewsletter($id);
    
    $rssend             = sendEmailNewsletter($email,"",$email,$subject,$msg,$id);
    if($rssend)
    {
        echo 'Sent Success';
    }else
    {
        echo 'Send fail';
    }
    echo '.to '. $email;exit;
}
if($act =='edit')
{
    $sql_select = "select * from tblnewsletter where  iId='$id'";    
    $newsletter = $dbsql->query_fetch($sql_select);
}
?>